#ifndef PARTICLE_DIALOG_H
#define PARTICLE_DIALOG_H

#include <QDialog>
#include <QtGui>

#include "defines/global.h"

class ParticleDialog : public QDialog{
    Q_OBJECT

    public:
        ParticleDialog(ParticleTreeItem *, QWidget * = 0);
        ~ParticleDialog();

    signals:
        void done();
        void startPauseSimulation(bool);

    private:
        ParticleTreeItem *item;
        Particle *particle;

        int colorR, colorG, colorB, colorAlpha;
		double mass, kdAir, miC;
		double positionX, positionY, positionZ;
		double velocityX, velocityY, velocityZ;
		bool fixedX, fixedY, fixedZ;

		QPushButton *colorPushButton;

        void createLayout();

        void setButtonColor();

    private slots:
        void acceptChange();
        void changeColor();
        void changeMass(double);
        void changeKdAir(double);
        void changeMiC(double);
        void changePositionX(double);
        void changePositionY(double);
        void changePositionZ(double);
        void changeVelocityX(double);
        void changeVelocityY(double);
        void changeVelocityZ(double);
        void changeFixedX(bool);
        void changeFixedY(bool);
        void changeFixedZ(bool);
};

#endif


